<title>用户地址列表</title>
<div class="hr hr-5 dotted"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>是否默认地址</th>
						<th>住址信息</th>
						<th>小区地址</th>
						<th>物业信息</th>
						<th>物业费截止日期</th>
						<th>创建时间</th>
						<th>修改时间</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody>
				<#list addressList as u>
					<tr>
						<td><span class="green center">${u.id}</span></td>
						<td>
							<span class="green center">
								<#if u.isDefault == 1>
									是
								<#else>
									否
								</#if>
							</span>
						</td>
						<td><span class="green center">${u.address!}</span></td>
						<td><span class="green center">${u.roomId!}</span></td>
						<td><span class="green center">${u.estateId!}</span></td>
						<td>
							<span class="green center">
							<#if u.endTime??>
								${tagUtils.formatDate(u.endTime)!}
							</#if>
							</span>
						</td>
						<td>
							<span class="green center">
							<#if u.createTime??>
								${tagUtils.formatDate(u.createTime)!}
							</#if>
							</span>
						</td>
						<td>
							<span class="green center">
								<#if u.modifyTime??>
									${tagUtils.formatDate(u.modifyTime!)!}
								</#if>
							</span>
						</td>
						<td>
						<#if u.state == 2>
							禁用
						<#else>
							正常
						</#if>
						</td>
					
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		
		<div class="hr hr-18 dotted hr-double"></div>
		
	</div><!-- /span -->
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>
<script>
	function isDel(url){
		if(!confirm("确认要删除？")){ 
				return false;		
		}else{
			location.href = url;
		}
	}
</script>